From: Matthew Barnes Date: Thu, 7 May 2015 20:02:39 +0000 (-0400) Subject: gpg: Fix ot_gpgme_error_to_gio_error() X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~731 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cd1551b1ee0b4452907698217cf789d1f75a3fd9;p=ostree.git gpg: Fix ot_gpgme_error_to_gio_error() Need to extract the error code from a gpgme_error_t, can't just compare it directly. --- diff --git a/src/libotutil/ot-gpg-utils.c b/src/libotutil/ot-gpg-utils.c index 88b436f2..d603b09b 100644 --- a/src/libotutil/ot-gpg-utils.c +++ b/src/libotutil/ot-gpg-utils.c @@ -34,7 +34,7 @@ ot_gpgme_error_to_gio_error (gpgme_error_t gpg_error, /* XXX This list is incomplete. Add cases as needed. */ - switch (gpg_error) + switch (gpgme_err_code (gpg_error)) { /* special case - shouldn't be here */ case GPG_ERR_NO_ERROR: